import Joi from '@hapi/joi';
import { paginateRule } from '../common';

export const indexRule = {
  query: {
    pageId: Joi.string().allow('')
  },
};

export const categoryByIdRule = {
  params: {
    id: Joi.string(),
  },
  query: {
    ...paginateRule,
  }
};

export const couponRule = {
  query: {
    user_id: Joi.string().allow('')
  },
};